# -*- coding: utf-8 -*-
from django.contrib import admin
from onecall.references.models import *

class RequestReasonAdmin(admin.ModelAdmin):
    search_fields = ('reason',)
admin.site.register(RequestReason, RequestReasonAdmin)

class RegionAdmin(admin.ModelAdmin):
    search_fields = ('name',)
admin.site.register(Region, RegionAdmin)

class RequestAnswerAdmin(admin.ModelAdmin):
    search_fields = ('answer',)
admin.site.register(RequestAnswer, RequestAnswerAdmin)

class SpecialistPostAdmin(admin.ModelAdmin):
    list_display = ['code', 'name',]
    list_display_links = ('name',)
    list_per_page = 20
    search_fields = ('name','code')
admin.site.register(SpecialistPost, SpecialistPostAdmin)

class AcademicDegreeAdmin(admin.ModelAdmin):
    search_fields = ('name',)
admin.site.register(AcademicDegree, AcademicDegreeAdmin)

class SpecialistCategoryAdmin(admin.ModelAdmin):
    search_fields = ('name',)
admin.site.register(SpecialistCategory, SpecialistCategoryAdmin)

class ServiceCategoryAdmin(admin.ModelAdmin):
    list_per_page = 20
    search_fields = ('name',)
    list_filter = ('code', )

        
admin.site.register(ServiceCategory, ServiceCategoryAdmin)
